# Contributor: Hoang Nguyen <folliekazetani@protonmail.com>
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=ticker
pkgver=4.5.2
pkgrel=0
pkgdesc="Terminal stock watcher and stock position tracker"
url="https://github.com/achannarasappa/ticker"
arch="all"
license="GPL-3.0-or-later"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/achannarasappa/ticker/archive/refs/tags/v$pkgver.tar.gz"

build() {
	go build -v -o bin/$pkgname -ldflags "-X github.com/achannarasappa/ticker/cmd.Version=v$pkgver"
}

check() {
	go test ./...
}

package() {
	install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="
cf704b03ba77f66e0886a7a25ec892046830abbc37dc2989a4857bbeb74921f27ffdedf185815480494216574fd429af4427d1220a8cddb88dec4c778426552e  ticker-4.5.2.tar.gz
"
